package com.main;

import java.io.IOException;

import mx4j.tools.adaptor.http.HttpAdaptor;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringMain {
	
	public static void main(String[] args) {
		
	ApplicationContext context=new ClassPathXmlApplicationContext("application_config.xml");
	if(context.containsBean("JMXHttpAdaptor")){
	HttpAdaptor jmxAdaptor=(HttpAdaptor) context.getBean("JMXHttpAdaptor");
	try {
		jmxAdaptor.start();
		System.out.println("JMX Adaptor started...");
	} catch (IOException e) {	}
	}
	
	System.out.println("Ending the main");
	}
}
